import request from '@/utils/request'

// 查询订单成功通知消息列表
export function listCms_message(query) {
  return request({
    url: '/message/cms_message/list',
    method: 'get',
    params: query
  })
}

// 查询订单成功通知消息详细
export function getCms_message(id) {
  return request({
    url: '/message/cms_message/' + id,
    method: 'get'
  })
}

// 新增订单成功通知消息
export function addCms_message(data) {
  return request({
    url: '/message/cms_message',
    method: 'post',
    data: data
  })
}

// 修改订单成功通知消息
export function updateCms_message(data) {
  return request({
    url: '/message/cms_message',
    method: 'put',
    data: data
  })
}

// 删除订单成功通知消息
export function delCms_message(id) {
  return request({
    url: '/message/cms_message/' + id,
    method: 'delete'
  })
}
